/**
* Copyright (c) By zengqh.
*
* This program is just for fun or demo, in the hope that it  
* will be useful, you can redistribute it and/or modify freely.
*
* Time: 2012/07/11
* File: Texture.cpp
* Blog: http://www.cnblogs.com/zengqh/
**/

#include "Texture.h"

Texture::Texture()
: _is_mipmap(false)
, _texture_type(TT_INVALID)
{

}

Texture::Texture(const std::string& path, bool is_mipmap)
: _path(path)
, _is_mipmap(is_mipmap)
, _texture_type(TT_INVALID)
{

}

void Texture::setPath(const std::string& path)
{
	_path = path;
}

void Texture::setMipmap(bool is_mipmap)
{
	_is_mipmap = is_mipmap;
}

const std::string& Texture::getPath() const
{
	return _path;
}

bool Texture::isMipmap() const
{
	return _is_mipmap;
}

TextureType Texture::getTextureType() const
{
	return _texture_type;
}